//
//  PlayerHeerderView.m
//  TFY_PlayerView
//
//  Created by 田风有 on 2019/7/9.
//  Copyright © 2019 田风有. All rights reserved.
//

#import "PlayerHeerderView.h"

@interface PlayerHeerderView ()

@end

@implementation PlayerHeerderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.coverImageView];
        self.coverImageView.tfy_LeftSpace(0).tfy_TopSpace(0).tfy_RightSpace(0).tfy_Height(300);
    }
    return self;
}

-(UIImageView *)coverImageView{
    if (!_coverImageView) {
        _coverImageView = tfy_imageView();
        _coverImageView.userInteractionEnabled = YES;
    }
    return _coverImageView;
}

@end
